package com.erp.freight.service;

import com.erp.freight.domain.KjxStoreProductRecord;
import com.erp.freight.domain.bo.KjxStoreProductRecordBo;
import com.erp.freight.domain.vo.KjxStoreProductRecordVo;
import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.common.core.web.oldPage.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 熊迪库存记录Service接口
 *
 * @author erp
 * @date 2024-04-07
 */
public interface IKjxStoreProductRecordService {

    /**
     * 查询熊迪库存记录
     */
    KjxStoreProductRecordVo queryById(Long id);

    /**
     * 查询熊迪库存记录列表
     */
    TableDataInfo<KjxStoreProductRecordVo> queryPageList(KjxStoreProductRecordBo bo, PageQuery pageQuery);

    /**
     * 查询熊迪库存记录列表
     */
    List<KjxStoreProductRecordVo> queryList(KjxStoreProductRecordBo bo);

    /**
     * 新增熊迪库存记录
     */
    Boolean insertByBo(KjxStoreProductRecordBo bo);

    /**
     * 修改熊迪库存记录
     */
    Boolean updateByBo(KjxStoreProductRecordBo bo);

    /**
     * 校验并批量删除熊迪库存记录信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    /**
     * 获取最新的skuCode价格
     */
    KjxStoreProductRecord getLastApply(String skuCode);
    
}
